package com.fdd.furns.service;

import com.fdd.furns.entity.Furn;
import com.fdd.furns.entity.Page;

import java.util.List;

public interface FurnService {
    public List<Furn> queryFurns();
    //添加家居
    public int add(Furn furn);
    
    //删除家居
    public int deleteFurn(int id);
    
    //通过id查询
    public Furn queryFurnById(int id);

    //更新家居
    public int updateFurn(Furn furn);

    //获取Page对象,pageNo表示第几页,pageSize表示每页显示多少条数据,都是从前端传递获取
    public Page<Furn> page(int pageNo, int pageSize);

    public Page<Furn> pageByName(int pageNo, int pageSize, String name);


}

